package com.gali.mall.request.categoryReq;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class SelectCategoryReq {
    @NotNull
    @Min(0)
    private Integer id;

    @NotNull
    @Size(min = 2,max = 5)
    private String name;

    @NotNull
    @Max(3)
    private Integer type;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
